<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>富文本编辑器</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../lib/layui-v2.9.13/css/layui.css" media="all">
  <!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
  <script src="../lib/layui-v2.9.13/layui.js" charset="utf-8"></script>
  <script src="../js/lay-config.js?v=1.0.5" charset="utf-8"></script>
</head>
<body>
<div id="ckeditor" style="margin: 50px 0 50px 0">
  <p>欢迎使用 <b>ckeditor</b> 富文本编辑器</p>
</div>

<pre class="layui-code">
    layui.use(['layer','ckeditor'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            CKEDITOR = layui.ckeditor;
        CKEDITOR.replace('ckeditor', {
            height: '400px',
            filebrowserImageUploadUrl: '../api/upload.json'
        });
    })
</pre>

<script type="text/javascript">
    layui.use(['layer','ckeditor'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            CKEDITOR = layui.ckeditor;
        CKEDITOR.replace('ckeditor', {
            height: '400px',
            filebrowserImageUploadUrl: '../api/upload.json'
        });
    })
</script>


</body>
</html>